package LexPortal.DAOInterface;

import LexPortal.Entity.*;
import java.util.*;

public interface UserDAO {

	public void Insert(User user) throws Exception;

	public void Update(User user) throws Exception;

	public void Delete(long id) throws Exception;

	public User QueryById(long id) throws Exception;

	public User QueryByName(String name) throws Exception;
	
	public List<User> QueryAll() throws Exception;

	public List<User> QueryAllByPage(int start, int pageNumber,
			String orderField, String orderDirection) throws Exception;
	
	public User Login(String name,String password);
}
